<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
    <meta charset="utf-8"/>
    <title>    TFC-Trotri Foundation Classes &raquo; \tfc\util\Ral
</title>
    <meta name="author" content=""/>
    <meta name="description" content=""/>

            <link href="../css/template.css" rel="stylesheet" media="all"/>
    
            <!--[if lt IE 9]>
        
        <![endif]-->
        <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
        <script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script>
        <script src="../js/bootstrap.js" type="text/javascript"></script>
        <script src="../js/template.js" type="text/javascript"></script>
        <script src="../js/prettify/prettify.min.js" type="text/javascript"></script>
    
            <link rel="shortcut icon" href="../img/favicon.ico"/>
        <link rel="apple-touch-icon" href="../img/apple-touch-icon.png"/>
        <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png"/>
        <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png"/>
    </head>
<body>

        <div class="navbar navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span> <span class="icon-bar"></span>
                    <span class="icon-bar"></span> </a>
                <a class="brand" href="http://www.trotri.com/">Trotri官网</a><a class="brand" href="../index.html">TFC-Trotri Foundation Classes</a>

                <div class="nav-collapse">
                    <ul class="nav">
                        <li class="dropdown">
                            <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
                                API Documentation <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                                                    <li><a>Namespaces</a></li>
                                                                        <li><a href="../namespaces/tfc.html">tfc</a></li>
                                                                                                                                </ul>
                        </li>
                        <li class="dropdown" id="charts-menu">
                            <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
                                Charts <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../graph_class.html">
                                        <i class="icon-list-alt"></i>&#160;Class hierarchy diagram
                                    </a>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown" id="reports-menu">
                            <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
                                Reports <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="../errors.html">
                                         
                                    </a>
                                </li>
                                <li>
                                    <a href="../markers.html">
                                        <i class="icon-list-alt"></i>&#160;Markers
                                    </a>
                                </li>
                                <li>
                                    <a href="../deprecated.html">
                                        <i class="icon-list-alt"></i>&#160;Deprecated
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="go_to_top">
            <a href="#___" style="color: inherit">Back to top&#160;&#160;<i class="icon-upload icon-white"></i></a>
        </div>
    </div>
    
    <div id="___" class="container">
        <noscript>
            <div class="alert alert-warning">
                Javascript is disabled; several features are only available if Javascript is enabled.
            </div>
        </noscript>

        
            <style>
        .deprecated h2 {
            text-decoration: line-through;
        }
    </style>
    <div class="row">
        <div class="span4">
                    <div class="btn-group view pull-right" data-toggle="buttons-radio">
        <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button>
        <button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
    </div>
    <div class="btn-group visibility" data-toggle="buttons-checkbox">
        <button class="btn public active" title="Show public elements">Public</button>
        <button class="btn protected" title="Show protected elements">Protected</button>
        <button class="btn private" title="Show private elements">Private</button>
        <button class="btn inherited active" title="Show inherited elements">Inherited</button>
    </div>

        <ul class="side-nav nav nav-list">
        <li class="nav-header">
            <i class="icon-custom icon-method"></i> Methods
            <ul>
                                                                                                    <li class="method public">
        <a href="#method___construct" title="__construct :: 构造方法：初始化服务器名称或IP地址、服务器端口号、连接超时、执行超时、获取数据后转码方式">
            <span class="description">构造方法：初始化服务器名称或IP地址、服务器端口号、连接超时、执行超时、获取数据后转码方式</span><pre>__construct</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_talk" title="talk :: CURL方式提交数据">
            <span class="description">CURL方式提交数据</span><pre>talk</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_converter" title="converter :: CURL获取数据后，将数据转码">
            <span class="description">CURL获取数据后，将数据转码</span><pre>converter</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_applyLogId" title="applyLogId :: 向URL上添加日志ID，提交给服务器">
            <span class="description">向URL上添加日志ID，提交给服务器</span><pre>applyLogId</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isString" title="isString :: 判断数据转码方式是否是字符串原样返回">
            <span class="description">判断数据转码方式是否是字符串原样返回</span><pre>isString</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isJson" title="isJson :: 判断数据转码方式是否是将Json串转成数组后返回">
            <span class="description">判断数据转码方式是否是将Json串转成数组后返回</span><pre>isJson</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isSerial" title="isSerial :: 判断数据转码方式是否是将序列串转成数组后返回">
            <span class="description">判断数据转码方式是否是将序列串转成数组后返回</span><pre>isSerial</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isGet" title="isGet :: 判断提交方式是否是GET">
            <span class="description">判断提交方式是否是GET</span><pre>isGet</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_isPost" title="isPost :: 判断提交方式是否是POST">
            <span class="description">判断提交方式是否是POST</span><pre>isPost</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getLogId" title="getLogId :: 获取日志ID">
            <span class="description">获取日志ID</span><pre>getLogId</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setLogId" title="setLogId :: 设置日志ID">
            <span class="description">设置日志ID</span><pre>setLogId</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getServer" title="getServer :: 获取服务器名称或IP地址">
            <span class="description">获取服务器名称或IP地址</span><pre>getServer</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setServer" title="setServer :: 设置服务器名称或IP地址">
            <span class="description">设置服务器名称或IP地址</span><pre>setServer</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getPort" title="getPort :: 获取服务器端口号">
            <span class="description">获取服务器端口号</span><pre>getPort</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setPort" title="setPort :: 设置服务器端口号">
            <span class="description">设置服务器端口号</span><pre>setPort</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getConnectTimeOutMs" title="getConnectTimeOutMs :: 获取连接超时，精确到：毫秒">
            <span class="description">获取连接超时，精确到：毫秒</span><pre>getConnectTimeOutMs</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setConnectTimeOutMs" title="setConnectTimeOutMs :: 设置连接超时，精确到：毫秒">
            <span class="description">设置连接超时，精确到：毫秒</span><pre>setConnectTimeOutMs</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getTimeOutMs" title="getTimeOutMs :: 获取执行超时，精确到：毫秒">
            <span class="description">获取执行超时，精确到：毫秒</span><pre>getTimeOutMs</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setTimeOutMs" title="setTimeOutMs :: 设置执行超时，精确到：毫秒">
            <span class="description">设置执行超时，精确到：毫秒</span><pre>setTimeOutMs</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_getConverter" title="getConverter :: 获取数据转码的方式">
            <span class="description">获取数据转码的方式</span><pre>getConverter</pre>
        </a>
    </li>

                                                                                                        <li class="method public">
        <a href="#method_setConverter" title="setConverter :: 设置数据转码的方式">
            <span class="description">设置数据转码的方式</span><pre>setConverter</pre>
        </a>
    </li>

                                                </ul>
        </li>
        <li class="nav-header protected">» Protected
            <ul>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </ul>
        </li>
        <li class="nav-header private">» Private
            <ul>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                </ul>
        </li>
        <li class="nav-header">
            <i class="icon-custom icon-constant"></i> Constants
            <ul>
                                <li class="constant ">
                    <a href="#constant_METHOD_GET" title="METHOD_GET :: ">
                        <span class="description"></span><pre>METHOD_GET</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_METHOD_POST" title="METHOD_POST :: ">
                        <span class="description"></span><pre>METHOD_POST</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_CONVERTER_STRING" title="CONVERTER_STRING :: ">
                        <span class="description"></span><pre>CONVERTER_STRING</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_CONVERTER_JSON" title="CONVERTER_JSON :: ">
                        <span class="description"></span><pre>CONVERTER_JSON</pre>
                    </a>
                </li>
                                <li class="constant ">
                    <a href="#constant_CONVERTER_SERIAL" title="CONVERTER_SERIAL :: ">
                        <span class="description"></span><pre>CONVERTER_SERIAL</pre>
                    </a>
                </li>
                            </ul>
        </li>
    </ul>


        </div>

        <div class="span8">
            <div class="element class">
                <h1>Ral</h1>
                <small style="display: block; text-align: right">
                                                        </small>
                <p class="short_description">Ral class file
Resource Access Layer 需要开启CURL支持</p>
                <div class="details">
                    <div class="long_description">
                        <pre>
CURLOPT_URL                读取Url
CURLOPT_HEADER             返回内容中不包含HTTP头
CURLOPT_FOLLOWLOCATION     将服务器返回的Location放在header中递归返回给服务器
CURLOPT_RETURNTRANSFER     将curl_exec()获取的信息以文件流的形式返回，而不直接输出
CURLOPT_NOSIGNAL           关闭alarm，支持ms级超时
CURLOPT_CONNECTTIMEOUT_MS  最长连接时间
CURLOPT_TIMEOUT_MS         最长读取和执行时间，精确到毫秒
CURLOPT_POST               发送POST请求，与表单提交效果是一样的
CURLOPT_POSTFIELDS         发送POST时，可以发的参数内容
</pre>
                    </div>
                    <table class="table table-bordered">
                                                                                    <tr>
                                    <th>
                                        author
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>宋欢 <a href="mailto:trotri@yeah.net">trotri@yeah.net</a></p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        version
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>$Id: Ral.php 1 2013-04-06 01:34:06Z huan.song $</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        package
                                                                            </th>
                                    <td>
                                                                                    
                                                                                <p>tfc.util</p>
                                    </td>
                                </tr>
                                                                                                                <tr>
                                    <th>
                                        since
                                                                            </th>
                                    <td>
                                                                                    1.0
                                                                                
                                    </td>
                                </tr>
                                                                                                                                                                                                                                    </table>

                    <h3><i class="icon-custom icon-method"></i> Methods</h3>
                                                                <a id="method___construct"></a>
                        <div class="element clickable method public  method___construct" data-toggle="collapse" data-target=".method___construct .collapse">
                            <h2>构造方法：初始化服务器名称或IP地址、服务器端口号、连接超时、执行超时、获取数据后转码方式</h2>
                            <pre>__construct(string $server, integer $port = 80, integer $connectTimeOutMsMs = 30, integer $timeOutMs = 500, string $converter = self::CONVERTER_STRING) </pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$server</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$port</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$connectTimeOutMsMs</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$timeOutMs</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$converter</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_talk"></a>
                        <div class="element clickable method public  method_talk" data-toggle="collapse" data-target=".method_talk .collapse">
                            <h2>CURL方式提交数据</h2>
                            <pre>talk(string $pathinfo, array $params = array(), string $method = &#039;GET&#039;) : mixed</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果method不是POST或者GET，抛出异常</p>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果curl执行失败，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$pathinfo</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$params</h4>
                                                <code>array</code><p></p>
                                            </div>
                                                                                    <div class="subelement argument">
                                                <h4>$method</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>mixed</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_converter"></a>
                        <div class="element clickable method public  method_converter" data-toggle="collapse" data-target=".method_converter .collapse">
                            <h2>CURL获取数据后，将数据转码</h2>
                            <pre>converter(string $param) : mixed</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果转码方式无效，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$param</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>mixed</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_applyLogId"></a>
                        <div class="element clickable method public  method_applyLogId" data-toggle="collapse" data-target=".method_applyLogId .collapse">
                            <h2>向URL上添加日志ID，提交给服务器</h2>
                            <pre>applyLogId(string $url) : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    throws
                                                </th>
                                                <td>
                                                                                                                                                                        
                                                                                                                                                                        <p>如果日志ID小于或等于0，抛出异常</p>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$url</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isString"></a>
                        <div class="element clickable method public  method_isString" data-toggle="collapse" data-target=".method_isString .collapse">
                            <h2>判断数据转码方式是否是字符串原样返回</h2>
                            <pre>isString() : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isJson"></a>
                        <div class="element clickable method public  method_isJson" data-toggle="collapse" data-target=".method_isJson .collapse">
                            <h2>判断数据转码方式是否是将Json串转成数组后返回</h2>
                            <pre>isJson() : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isSerial"></a>
                        <div class="element clickable method public  method_isSerial" data-toggle="collapse" data-target=".method_isSerial .collapse">
                            <h2>判断数据转码方式是否是将序列串转成数组后返回</h2>
                            <pre>isSerial() : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isGet"></a>
                        <div class="element clickable method public  method_isGet" data-toggle="collapse" data-target=".method_isGet .collapse">
                            <h2>判断提交方式是否是GET</h2>
                            <pre>isGet(string $method) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$method</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_isPost"></a>
                        <div class="element clickable method public  method_isPost" data-toggle="collapse" data-target=".method_isPost .collapse">
                            <h2>判断提交方式是否是POST</h2>
                            <pre>isPost(string $method) : boolean</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$method</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code>boolean</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getLogId"></a>
                        <div class="element clickable method public  method_getLogId" data-toggle="collapse" data-target=".method_getLogId .collapse">
                            <h2>获取日志ID</h2>
                            <pre>getLogId() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setLogId"></a>
                        <div class="element clickable method public  method_setLogId" data-toggle="collapse" data-target=".method_setLogId .collapse">
                            <h2>设置日志ID</h2>
                            <pre>setLogId(integer $logId) : \tfc\util\Ral</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$logId</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Ral.html">\tfc\util\Ral</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getServer"></a>
                        <div class="element clickable method public  method_getServer" data-toggle="collapse" data-target=".method_getServer .collapse">
                            <h2>获取服务器名称或IP地址</h2>
                            <pre>getServer() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setServer"></a>
                        <div class="element clickable method public  method_setServer" data-toggle="collapse" data-target=".method_setServer .collapse">
                            <h2>设置服务器名称或IP地址</h2>
                            <pre>setServer(string $server) : \tfc\util\Ral</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$server</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Ral.html">\tfc\util\Ral</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getPort"></a>
                        <div class="element clickable method public  method_getPort" data-toggle="collapse" data-target=".method_getPort .collapse">
                            <h2>获取服务器端口号</h2>
                            <pre>getPort() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setPort"></a>
                        <div class="element clickable method public  method_setPort" data-toggle="collapse" data-target=".method_setPort .collapse">
                            <h2>设置服务器端口号</h2>
                            <pre>setPort(integer $port) : \tfc\util\Ral</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$port</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Ral.html">\tfc\util\Ral</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getConnectTimeOutMs"></a>
                        <div class="element clickable method public  method_getConnectTimeOutMs" data-toggle="collapse" data-target=".method_getConnectTimeOutMs .collapse">
                            <h2>获取连接超时，精确到：毫秒</h2>
                            <pre>getConnectTimeOutMs() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setConnectTimeOutMs"></a>
                        <div class="element clickable method public  method_setConnectTimeOutMs" data-toggle="collapse" data-target=".method_setConnectTimeOutMs .collapse">
                            <h2>设置连接超时，精确到：毫秒</h2>
                            <pre>setConnectTimeOutMs(integer $connectTimeOutMs) : \tfc\util\Ral</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$connectTimeOutMs</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Ral.html">\tfc\util\Ral</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getTimeOutMs"></a>
                        <div class="element clickable method public  method_getTimeOutMs" data-toggle="collapse" data-target=".method_getTimeOutMs .collapse">
                            <h2>获取执行超时，精确到：毫秒</h2>
                            <pre>getTimeOutMs() : integer</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>integer</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setTimeOutMs"></a>
                        <div class="element clickable method public  method_setTimeOutMs" data-toggle="collapse" data-target=".method_setTimeOutMs .collapse">
                            <h2>设置执行超时，精确到：毫秒</h2>
                            <pre>setTimeOutMs(integer $timeOutMs) : \tfc\util\Ral</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$timeOutMs</h4>
                                                <code>integer</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Ral.html">\tfc\util\Ral</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_getConverter"></a>
                        <div class="element clickable method public  method_getConverter" data-toggle="collapse" data-target=".method_getConverter .collapse">
                            <h2>获取数据转码的方式</h2>
                            <pre>getConverter() : string</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                    
                                                                            <h3>Response</h3>
                                        <code>string</code><p></p>
                                                                    </div>
                            </div>
                        </div>
                                            <a id="method_setConverter"></a>
                        <div class="element clickable method public  method_setConverter" data-toggle="collapse" data-target=".method_setConverter .collapse">
                            <h2>设置数据转码的方式</h2>
                            <pre>setConverter(string $converter) : \tfc\util\Ral</pre>
                            <div class="labels">
                                                                                                                                                                                            </div>
                            <div class="row collapse">
                                <div class="detail-description">
                                    <div class="long_description"></div>

                                    <table class="table">
                                                                                    <tr>
                                                <th>
                                                    
                                                </th>
                                                <td>
                                                                                                    </td>
                                            </tr>
                                                                            </table>

                                                                            <h3>Arguments</h3>
                                                                                    <div class="subelement argument">
                                                <h4>$converter</h4>
                                                <code>string</code><p></p>
                                            </div>
                                                                            
                                                                            <h3>Response</h3>
                                        <code><a href="../classes/tfc.util.Ral.html">\tfc\util\Ral</a></code><p></p>
                                                                    </div>
                            </div>
                        </div>
                    
                                            <h3><i class="icon-custom icon-constant"></i> Constants</h3>
                                                    <a id="constant_METHOD_GET"> </a>
                            <div class="element clickable constant  constant_METHOD_GET" data-toggle="collapse" data-target=".constant_METHOD_GET .collapse">
                                <h2>METHOD_GET</h2>
                                <pre>METHOD_GET</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>提交方式：GET</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_METHOD_POST"> </a>
                            <div class="element clickable constant  constant_METHOD_POST" data-toggle="collapse" data-target=".constant_METHOD_POST .collapse">
                                <h2>METHOD_POST</h2>
                                <pre>METHOD_POST</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>提交方式：POST</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_CONVERTER_STRING"> </a>
                            <div class="element clickable constant  constant_CONVERTER_STRING" data-toggle="collapse" data-target=".constant_CONVERTER_STRING .collapse">
                                <h2>CONVERTER_STRING</h2>
                                <pre>CONVERTER_STRING</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>数据转码方式：字符串原样返回</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_CONVERTER_JSON"> </a>
                            <div class="element clickable constant  constant_CONVERTER_JSON" data-toggle="collapse" data-target=".constant_CONVERTER_JSON .collapse">
                                <h2>CONVERTER_JSON</h2>
                                <pre>CONVERTER_JSON</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>数据转码方式：将Json串转成数组后返回</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                                    <a id="constant_CONVERTER_SERIAL"> </a>
                            <div class="element clickable constant  constant_CONVERTER_SERIAL" data-toggle="collapse" data-target=".constant_CONVERTER_SERIAL .collapse">
                                <h2>CONVERTER_SERIAL</h2>
                                <pre>CONVERTER_SERIAL</pre>
                                <div class="labels">
                                                                    </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>
                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>数据转码方式：将序列串转成数组后返回</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>
                                    </div>
                                </div>
                            </div>
                                            
                                                                <h3><i class="icon-custom icon-property"></i> Properties</h3>
                                                    <a id="property__server"> </a>
                            <div class="element clickable property  protected property__server" data-toggle="collapse" data-target=".property__server .collapse">
                                <h2>服务器名称或IP地址</h2>
                                <pre>_server : string</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>服务器名称或IP地址</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__port"> </a>
                            <div class="element clickable property  protected property__port" data-toggle="collapse" data-target=".property__port .collapse">
                                <h2>服务器端口号</h2>
                                <pre>_port : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>服务器端口号</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__connectTimeOutMs"> </a>
                            <div class="element clickable property  protected property__connectTimeOutMs" data-toggle="collapse" data-target=".property__connectTimeOutMs .collapse">
                                <h2>连接超时，精确到：毫秒</h2>
                                <pre>_connectTimeOutMs : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>连接超时，精确到：毫秒</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__timeOutMs"> </a>
                            <div class="element clickable property  protected property__timeOutMs" data-toggle="collapse" data-target=".property__timeOutMs .collapse">
                                <h2>执行超时，精确到：毫秒</h2>
                                <pre>_timeOutMs : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>执行超时，精确到：毫秒</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__converter"> </a>
                            <div class="element clickable property  protected property__converter" data-toggle="collapse" data-target=".property__converter .collapse">
                                <h2>CURL获取数据后，将数据转码的方式</h2>
                                <pre>_converter : string</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>CURL获取数据后，将数据转码的方式</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>string</code>
                                                                            </div>
                                </div>
                            </div>
                                                    <a id="property__logId"> </a>
                            <div class="element clickable property  protected property__logId" data-toggle="collapse" data-target=".property__logId .collapse">
                                <h2>日志ID，提交给服务器端，方便调试</h2>
                                <pre>_logId : integer</pre>
                                <div class="labels">
                                                                                                        </div>
                                <div class="row collapse">
                                    <div class="detail-description">
                                        <div class="long_description"></div>

                                        <table class="table">
                                                                                            <tr>
                                                    <th>
                                                        var
                                                    </th>
                                                    <td>
                                                                                                                    <p>日志ID，提交给服务器端，方便调试</p>
                                                                                                            </td>
                                                </tr>
                                                                                            <tr>
                                                    <th>
                                                        
                                                    </th>
                                                    <td>
                                                                                                            </td>
                                                </tr>
                                                                                    </table>

                                                                                    <h3>Type(s)</h3>
                                            <code>integer</code>
                                                                            </div>
                                </div>
                            </div>
                                                            </div>
            </div>
            <a id="\tfc\util\Ral"></a>
            <ul class="breadcrumb">
                <li><a href="../index.html"><i class="icon-custom icon-class"></i></a></li>
                    
    
    <li><span class="divider">\</span><a href="../namespaces/tfc.util.html">util</a></li>

                <li class="active"><span class="divider">\</span><a href="../classes/tfc.util.Ral.html">Ral</a></li>
            </ul>
        </div>
    </div>

    </div>

        <footer class="span12">
            Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by
            <a href="http://glyphicons.com/">Glyphicons</a>.<br/>
            Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor </a> and<br/>
            generated on Sat, 27 Dec 2014 06:16:38 +0000.<br/>
    </footer>
    </body>
</html>
